import { createBrowserRouter } from "react-router-dom";
import App from '../App'
import ErrorPage from '../components/ErrorPage'
import Home from "../views/Home";


const router = createBrowserRouter([
  {
    path: "/",
    element: <App />,
    errorElement: <ErrorPage />,
    children: [
      {
        path: 'home',
        element: <Home/>
      }
    ]
  },
], {
  basename: '/'
});

export default router